/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package justdoit.model;

import java.awt.Dimension;
import java.awt.Point;
import java.util.Locale;

/**
 * Contain all information will be used on start up
 * @author Can
 */
public class DefaultSettings {

    private String userName;        // the username to be auto load
    private Integer winX;           // the X location of main window
    private Integer winY;           // the Y location of main window
    private Integer normalWidth;       // the width of main window
    private Integer normalHeight;      // the height of main window
    private Dimension compactDimension; // the dimension of compact mode
    private Point compactLocation;
    private Locale locale;
    private String mode;
    public static final String MODE_NORMAL = "normal";
    public static final String MODE_COMPACT = "compact";

    public DefaultSettings() {
        userName = "";
        locale = new Locale("en", "US");
        winX = 0;
        winY = 0;
        normalWidth = 900;
        normalHeight = 400;
        compactDimension = new Dimension(400, 400);
        compactLocation = new Point();
        mode = MODE_NORMAL;
    }

    public Locale getLocal() {
        return locale;
    }

    public String getMode() {
        return mode;
    }

    public void setMode(String mode) {
        this.mode = mode;
    }

    public void setLocale(Locale locale) {
        this.locale = locale;
    }

    public Point getCompactLocation() {
        return compactLocation;
    }

    public void setCompactLocation(Point compactLocation) {
        this.compactLocation = compactLocation;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Integer getNormalHeight() {
        return normalHeight;
    }

    public void setNormalHeight(Integer winHeight) {
        this.normalHeight = winHeight;
    }

    public Integer getNormalWidth() {
        return normalWidth;
    }

    public void setNormalWidth(Integer winWidth) {
        this.normalWidth = winWidth;
    }

    public Dimension getCompactDimension() {
        return compactDimension;
    }

    public void setCompactDimension(Dimension compactDimension) {
        this.compactDimension = compactDimension;
    }

    public Integer getWinX() {
        return winX;
    }

    public void setWinX(Integer winX) {
        this.winX = winX;
    }

    public Integer getWinY() {
        return winY;
    }

    public void setWinY(Integer winY) {
        this.winY = winY;
    }
}
